using UnityEngine;

public class GameTypeSelectorCarInfo : MonoBehaviour
{
	public MarketCarMiniInfoPanel carMiniInfoPanel;

	public void ShowMiniInfoPanel(Product product)
	{
		HideMiniInfoPanels();
		if (product != null && !MarketControllerUI.instance.productsPanel.productInfoPanel.IsActive())
		{
			switch (product.GetType().ToString())
			{
			case "ProductCar":
			case "ProductTank":
			case "ProductTitan":
				carMiniInfoPanel.gameObject.SetActive(true);
				carMiniInfoPanel.SetInfo(product);
				break;
			}
		}
	}

	public void HideMiniInfoPanels()
	{
		carMiniInfoPanel.gameObject.SetActive(false);
	}
}
